package com.g9.blog.service;

import com.g9.blog.common.Result;
import com.g9.blog.entity.Users;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Auther: Graycat
 * @Date: 2020/9/8 15:30
 * Create by lwj.
 */

public interface MyUserService {

    Result updateUserIcon( MultipartFile file, Users users);

    String uploadIcon( MultipartFile file );

    String uploadImg(  MultipartFile file  );

    Result updateUserIconByUsername( MultipartFile file, String username );

    public  void  printSelf();

    List<Users> findAllByUsername(String username);

    List<Users> findAll();

    void deleteById(int userId);

    void save(Users users);
}
